<?php

use app\models\user\gs\UsersBaseinfoGs;

/**
 * Created by PhpStorm.
 * User: songs
 * Date: 2020/8/21
 * Time: 15:12
 */
$this->context->get_menu()->add_zi_menu([
    'title' => '公司'
]);

$id=$_GET['uid'];
$one = UsersBaseinfoGs::find()->where([
    'id' => $id
])->select([
    'isbase', 'iszhengjian', 'isgongsichanpin',
    'ischanpinfengge', 'iszhiliangbiaozhun', 'isgongsihuanjing',
])->one();

if (!$one) {
    \app\components\Fun::showmsg("没有数据");
}


?>
<div class="content" xmlns:v-bind="http://www.w3.org/1999/xhtml">

    <div  class="mui-input-rowtable">
        <label>基本信息<span class="Must">*</span></label>
        <a href="base_gr?uid=<?= $id ?>" mcname="isbase" class="zhuangtai"  v-bind:class="{'on': isbase>0}">
            <span class="span">{{ isbase>0 ? '已上传' : '请上传' }}</span>
            <i class="rightico"></i>
        </a>
    </div>
    <div class="mui-input-rowtable">
        <label>我的证件</label>
        <a href="zhengjianshangchuan_gr?uid=<?= $id ?>" mcname="iszhengjian" class="zhuangtai"  v-bind:class="{'on': iszhengjian>0}">
            <span class="span">{{ iszhengjian>0 ? '已上传' : '请上传' }}</span>
            <i class="rightico"></i>
        </a>
    </div>
    <div class="mui-input-rowtable">
        <label>教育背景</label>
        <a href="jiaoyubeijing_gr?uid=<?= $id ?>" mcname="isjiaoyubeijing" class="zhuangtai"  v-bind:class="{'on': isjiaoyubeijing>0}">
            <span class="span">{{ isjiaoyubeijing>0 ? '已上传' : '请上传' }}</span>
            <i class="rightico"></i>
        </a>
    </div>
    <div class="mui-input-rowtable">
        <label>工作经历</label>
        <a href="gongzuojingli_gr?uid=<?= $id ?>" mcname="isgongzuojingli" class="zhuangtai"  v-bind:class="{'on': isgongzuojingli>0}">
            <span class="span">{{ isgongzuojingli>0 ? '已上传' : '请上传' }}</span>
            <i class="rightico"></i>
        </a>
    </div>
    <div class="mui-input-rowtable" >
        <label>家庭成员</label>
        <a href="jiatingchengyuan_gs?uid=<?= $id ?>" mcname="isjiatingchengyuan" class="zhuangtai"  v-bind:class="{'on': isjiatingchengyuan>0}">
            <span class="span">{{ isjiatingchengyuan>0 ? '已上传' : '请上传' }}</span>
            <i class="rightico"></i>
        </a>
    </div>
    <div class="mui-input-rowtable">
        <label>求职意向.公司员工</label>
        <a href="qiuzhiyixiang_gs?uid=<?= $id ?>" mcname="isqiuzhiyixiang" class="zhuangtai"  v-bind:class="{'on': isqiuzhiyixiang>0}">
            <span class="span">{{ isqiuzhiyixiang>0 ? '已上传' : '请上传' }}</span>
            <i class="rightico"></i>
        </a>
    </div>
    <div class="mui-input-rowtable">
        <label>求职意向.工厂员工</label>
        <a href="qiuzhiyixiang_gc?uid=<?= $id ?>" mcname="isqiuzhiyixiang" class="zhuangtai"  v-bind:class="{'on': isqiuzhiyixiang>0}">
            <span class="span">{{ isqiuzhiyixiang>0 ? '已上传' : '请上传' }}</span>
            <i class="rightico"></i>
        </a>
    </div>



    <div class="mui-input-rowtable">
        <label>自我评价</label>
        <a href="ziwopingjia_gs?uid=<?= $id ?>" mcname="isziwopingjia" class="zhuangtai"  v-bind:class="{'on': isziwopingjia>0}">
            <span class="span">{{ isziwopingjia>0 ? '已上传' : '请上传' }}</span>
            <i class="rightico"></i>
        </a>
    </div>


</div>
<script>

    var app = new Vue({
        el: '.content',
        data: {
            isbase:<?= $one['isbase']??0 ?>,
            iszhengjian:<?= $one['iszhengjian']??0 ?>,
            isgongsichanpin:<?= $one['isgongsichanpin']??0 ?>,
            ischanpinfengge:<?= $one['ischanpinfengge']??0 ?>,
            iszhiliangbiaozhun:<?= $one['iszhiliangbiaozhun']??0 ?>,
            isgongsihuanjing:<?= $one['isgongsihuanjing']??0 ?>,
        }
    })

</script>